package touhou.entity;

import java.awt.Rectangle;
import java.awt.geom.Point2D;

import touhou.base.Entity;
import touhou.game.GameEntity;
import gameframework.game.MoveBlocker;

/**
 * Objet immobile qui sert de bloqueur (ou mur invisible)
 */
public class Blocker extends GameEntity implements MoveBlocker, Entity {
	
	private int SIZE_X;
	private int SIZE_Y;
	
	public Blocker(Point2D position, int x_size, int y_size) {
		super(position);
		this.SIZE_X = x_size;
		this.SIZE_Y = y_size;
	}

	@Override
	public Rectangle getBoundingBox() {
		return (new Rectangle((int)position.getX(), (int)position.getY(), SIZE_X, SIZE_Y));
	}
}
